Dynomotion

Group: DynoMotion Message: 2089 From: himykabibble Date: 11/1/2011
Subject: Spindle Control Under Mach3
(I think) I've written a C function, based on SpindleMach3PWM.c to control my spindle I/F using PWM0, but I'm not at all clear on how to "plumb" this into Mach3. What do I have to do to ensure my program will be used?

I'm also confused by the fact that SpindleMach3PWM.c sets the CW/CCW relay outputs, when it seems to me this can be just as easily done by simply configuring I/Os within Mach3, as it would be done for a PP. Is there an advantage or disadvantage in doing it in one place or the other?

Regards,
Ray L.
Group: DynoMotion Message: 2090 From: Tom Kerekes Date: 11/2/2011
Subject: Re: Spindle Control Under Mach3
Hi Ray,
 
There is a cell in the Mach3 | Config | Config Plugins | Dynomotion where you specify the C program that you wish to have handle the Mach3 Spindle Messages.
 
It is probably best to do both speed changes and relay changes for the spindle in the KFLOP C program.  That way you have control over the order things happen.   In this case set the Relays in Mach3 to dummy IO.  You can't Bypass the relays or Mach3 stops sending some of the messages to the Plugin.
 
Regards
TK
 
 

Group: DynoMotion Message: 2097 From: himykabibble Date: 11/2/2011
Subject: Re: Spindle Control Under Mach3
Tom,

Thanks. I shoulda known that, since I did see it before.... Trouble is, there are so many places to look for various bits of configuration, I can't remember them all! My spindle control appears to work fine right out of the box!

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> There is a cell in the Mach3 | Config | Config Plugins | Dynomotion where you specify the C program that you wish to have handle the Mach3 Spindle Messages.
>  
> It is probably best to do both speed changes and relay changes for the spindle in the KFLOP C program.  That way you have control over the order things happen.   In this case set the Relays in Mach3 to dummy IO.  You can't Bypass the relays or Mach3 stops sending some of the messages to the Plugin.
>  
> Regards
> TK
>  
>  
>
>
> ________________________________
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, November 1, 2011 10:36 PM
> Subject: [DynoMotion] Spindle Control Under Mach3
>
>
>  
> (I think) I've written a C function, based on SpindleMach3PWM.c to control my spindle I/F using PWM0, but I'm not at all clear on how to "plumb" this into Mach3. What do I have to do to ensure my program will be used?
>
> I'm also confused by the fact that SpindleMach3PWM.c sets the CW/CCW relay outputs, when it seems to me this can be just as easily done by simply configuring I/Os within Mach3, as it would be done for a PP. Is there an advantage or disadvantage in doing it in one place or the other?
>
> Regards,
> Ray L.
>